﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

using Weazel.Badger.Vhdl.Types;

#endregion

namespace Weazel.Badger.Vhdl.Operators.Unary
{
  public abstract class ConversionBase : UnaryFunction
  {
    /// <summary>
    /// The target width of this conversion. 
    /// </summary>
    private int width;
    protected int Width
    {
      get
      {
        return width;
      }

      set
      {
        width = value;
      }
    }

    /// <summary>
    /// The source type of this conversion
    /// </summary>
    private Types.Type from;
    protected Types.Type From
    {
      get
      {
        return from;
      }

      set
      {
        from = value;
      }
    }

    public ConversionBase(int width, Types.Type from)
    {
      this.width = width;
      this.from = from;      
    }
  }
}
